package com.efast.dmom.mes.entity;

import java.time.LocalTime;

import com.efast.dmom.mes.entity.base.ConfigurationBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer;


/**
 * 班次的休息详情
 * @author 
 *
 */
public class ShiftItemEntity extends ConfigurationBaseEntity{

	private static final long serialVersionUID = -550529876334457323L;
	private long shiftId;
	private String shiftName;
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm:ss")
	@JsonDeserialize(using = LocalTimeDeserializer.class)
	@JsonSerialize(using = LocalTimeSerializer.class)
	private LocalTime startTime;
	
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="HH:mm:ss")
	@JsonDeserialize(using = LocalTimeDeserializer.class)
	@JsonSerialize(using = LocalTimeSerializer.class)
	private LocalTime endTime;
	private String shiftItemType;
	private int duration; //时长
	private int shiftItemSequence; //排序
	private String ea0;
	private String ea1;
	private String ea2;
	private String ea3;
	private String ea4;
	public long getShiftId() {
		return shiftId;
	}
	public void setShiftId(long shiftId) {
		this.shiftId = shiftId;
	}
	public String getShiftName() {
		return shiftName;
	}
	public void setShiftName(String shiftName) {
		this.shiftName = shiftName;
	}
	public int getShiftItemSequence() {
		return shiftItemSequence;
	}
	public void setShiftItemSequence(int shiftItemSequence) {
		this.shiftItemSequence = shiftItemSequence;
	}
	public String getShiftItemType() {
		return shiftItemType;
	}
	public void setShiftItemType(String shiftItemType) {
		this.shiftItemType = shiftItemType;
	}
	public LocalTime getStartTime() {
		return startTime;
	}
	public void setStartTime(LocalTime startTime) {
		this.startTime = startTime;
	}
	public LocalTime getEndTime() {
		return endTime;
	}
	public void setEndTime(LocalTime endTime) {
		this.endTime = endTime;
	}
	public int getDuration() {
		return duration;
	}
	public void setDuration(int duration) {
		this.duration = duration;
	}
	public String getEa0() {
		return ea0;
	}
	public void setEa0(String ea0) {
		this.ea0 = ea0;
	}
	public String getEa1() {
		return ea1;
	}
	public void setEa1(String ea1) {
		this.ea1 = ea1;
	}
	public String getEa2() {
		return ea2;
	}
	public void setEa2(String ea2) {
		this.ea2 = ea2;
	}
	public String getEa3() {
		return ea3;
	}
	public void setEa3(String ea3) {
		this.ea3 = ea3;
	}
	public String getEa4() {
		return ea4;
	}
	public void setEa4(String ea4) {
		this.ea4 = ea4;
	}
}
